﻿@model ConferenceMasterModel
@{
	ViewBag.Title = Resources.ConferenceInfo + ConstValues.strDash + ViewBag.ConferenceName;
}
<!-- 会议基本信息 -->
<div class="con" style="min-height:calc(100vh - 100px);overflow:auto">
	<div class="box clearfix">
		<div class="tit01">
			<div style="float:left; margin-left:10px; font-weight:bold; font-size:18px;">@Resources.MainInfo</div>
			<div style="float:right; margin-right:10px;">
				@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.Id) || Utility.HasConferenceRole((User as ICISPrincipal), Model.Id, ConstValues.FunctionId.ConferenceInfo, RoleType.修改))
				 {
					<text>
					<a id="btnInfoModify" href="javascript:void(0);" style="font-weight:bold;text-decoration:underline;" onclick="unlockForm('@ConstValues.ConferencePart.Info');">@Resources.Modify</a>
					<a id="btnInfoSave" href="javascript:void(0);" style="color:#52D2FF;font-weight:bold;text-decoration:underline;display:none;" onclick="saveData('@ConstValues.ConferencePart.Info');">@Resources.Save</a>
					</text>
				}
			</div>
		</div>
		<form id="frmInfo" method="post" enctype="multipart/form-data">
			@Html.AntiForgeryToken()
			<input type="hidden" id="hidIdInfo" name="Id" />
			<input type="hidden" id="hidPartInfo" name="Part" />
			<table width="100%" height="100%" id="tblInfo" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
				<tr>
					<td style="text-align: right;" class="w1 c1">@Resources.ConferenceName：</td>
					<td style="text-align: left;" class="w2 c2" colspan="3">
						<input id="txtConferenceName" name="ConferenceName" class="easyui-textbox" style="height:27px; width:88%;" data-options="required:true" disabled="disabled" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c3">@Resources.ConferenceNickName：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="txtConferenceNickName" name="ConferenceNickName" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true, validType:['length[1,20]']" disabled="disabled" />
					</td>
					<td style="text-align: right;" class="w1 c3">@Resources.International：</td>
					<td style="text-align: left;" class="w2 c4">
						<input type="checkbox" id="isInternational" name="IsInternational" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.ConferenceDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateConferenceStartDate" name="ConferenceStartDate" class="easyui-datebox" style="height:27px; width:120px;" data-options="required:true,editable:false" />&nbsp;@Resources.To&nbsp;
						<input id="dateConferenceEndDate" name="ConferenceEndDate" class="easyui-datebox" style="height:27px; width:120px;" data-options="required:true,editable:false" />
					</td>
					<td style="text-align: right;" class="w1 c1">@Resources.OperateTime：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="txtOperateTime" name="OperateTime" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c3">@Resources.OperateLocation：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="txtOperateLocation" name="OperateLocation" class="easyui-textbox" style="height:27px; width:300px;" data-options="required:true, validType:['length[1,100]']" />
					</td>
					<td style="text-align: right;" class="w1 c3">@Resources.ConferenceAddress：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="txtConferenceAddress" name="ConferenceAddress" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c1">@Resources.Sponsor：</td>
					<td style="text-align: left;" class="w2 c2" colspan="3">
						<input id="txtSponsor" name="Sponsor" class="easyui-textbox" style="height:27px; width:88%;" data-options="prompt:'@Resources.SponsorPrompt',validType:['length[1,200]']" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c3">@Resources.Organizer：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="txtOrganizer" name="Organizer" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
					</td>
					<td style="text-align: right;" class="w1 c3">@Resources.CoOrganizer：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="txtCoOrganizer" name="CoOrganizer" class="easyui-textbox" style="height:27px; width:300px;" data-options="validType:['length[1,100]']" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.ConferenceHomePageUrl：</td>
					<td style="text-align: left;" class="w2 c2" colspan="3">
						<input id="txtHomePageUrl" name="HomePageUrl" class="easyui-textbox" style="height:27px; width:88%;" data-options="prompt:'@Resources.Example http://www.htcis.net',validType:['length[1,100]']" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.ConferenceSummary：</td>
					<td style="text-align: left;" class="w2 c4" colspan="3">
						<input id="txtSummary" name="Summary" class="easyui-textbox" style="height:50px; width:88%;" data-options="multiline:true, validType:['length[1,4000]']" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c1">@Resources.Contact：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="txtContact" name="Contact" class="easyui-textbox" style="height:27px; width:300px;" data-options="prompt:'@Resources.ContactPrompt',required:true, validType:['length[1,100]']" />
					</td>
					<td style="text-align: right;" class="w1 c1">@Resources.ContactPhone：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="txtContactPhone" name="ContactPhone" class="easyui-textbox" style="height:27px; width:300px;" data-options="prompt:'@Resources.ContactPrompt',required:true, validType:['length[1,100]']" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c3">@Resources.ContactMail：</td>
					<td style="text-align: left;" class="w2 c4" colspan="3">
						<input id="txtContactMail" name="ContactMail" class="easyui-textbox" style="height:27px; width:88%;" data-options="prompt:'@Resources.ContactPrompt',required:true, validType:['length[1,100]']" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.PicForPC：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="picForPC" name="PicForPCFile" class="easyui-filebox" style="height:27px; width:50%;" data-options="prompt:'@Resources.UploadPicForPC', buttonText:'@Resources.Upload', accept: 'image/jpeg,image/png,image/gif'" />&nbsp;160*90
						<input type="hidden" id="hidPicForPC" name="PicForPCFilePath" />
						<a href="javascript:void(0)" id="aPicForPC" class="easyui-linkbutton" onclick='$("#picForPC").filebox("clear"); $("#hidPicForPC").val("");'>@Resources.Clear</a>
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.PicForMobile：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="picForMobile" name="PicForMobileFile" class="easyui-filebox" style="height:27px; width:50%;" data-options="prompt:'@Resources.UploadPicForPC', buttonText:'@Resources.Upload', accept: 'image/jpeg,image/png,image/gif'" />&nbsp;160*90
						<input type="hidden" id="hidPicForMobile" name="PicForMobileFilePath" />
						<a href="javascript:void(0)" id="aPicForMobile" class="easyui-linkbutton" onclick='$("#picForMobile").filebox("clear"); $("#hidPicForMobile").val("");'>@Resources.Clear</a>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.MetaKeywords：</td>
					<td style="text-align: left;" class="w2 c4" colspan="3">
						<input id="txtKeywords" name="Keywords" class="easyui-textbox" style="height:27px; width:88%;" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.MetaDescription：</td>
					<td style="text-align: left;" class="w2 c2" colspan="3">
						<input id="txtDescription" name="Description" class="easyui-textbox" style="height:27px; width:88%;" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.Remark：</td>
					<td style="text-align: left;" class="w2 c4" colspan="3">
						<input id="txtRemark" name="Remark" class="easyui-textbox" style="height:50px; width:88%;" data-options="multiline:true, validType:['length[1,1000]']" />
					</td>
				</tr>
			</table>
		</form>		
		<div class="tit01">
			<div style="float:left; margin-left:10px; font-weight:bold; font-size:18px;">@Resources.AttendanceInfo</div>
			<div style="float:right; margin-right:10px;">
				@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.Id) || Utility.HasConferenceRole((User as ICISPrincipal), Model.Id, ConstValues.FunctionId.ConferenceInfo, RoleType.修改))
				 {
					<text>
					<a id="btnAttendenceModify" href="javascript:void(0);" style="font-weight:bold;text-decoration:underline;" onclick="unlockForm('@ConstValues.ConferencePart.Attendence');">@Resources.Modify</a>
					<a id="btnAttendenceSave" href="javascript:void(0);" style="color:#52D2FF;font-weight:bold;text-decoration:underline;display:none;" onclick="saveData('@ConstValues.ConferencePart.Attendence');">@Resources.Save</a>
					</text>
				}
			</div>
		</div>
		<form id="frmAttendence" method="post">
			@Html.AntiForgeryToken()
			<input type="hidden" id="hidIdAttendence" name="Id" />
			<input type="hidden" id="hidPartAttendence" name="Part" />
			<table width="100%" height="100%" id="tblAttendence" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.RegisterStartDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateRegisterStartDate" name="RegisterStartDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.RegisterEndDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateRegisterEndDate" name="RegisterEndDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.PayStartDate：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="datePayStartDate" name="PayStartDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.PayEndDate：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="datePayEndDate" name="PayEndDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.BenefitStartDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateBenefitStartDate" name="BenefitStartDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.BenefitEndDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateBenefitEndDate" name="BenefitEndDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.AttendenceNotice：</td>
					<td style="text-align: left;" class="w2 c4" colspan="3">
						<input type=hidden id="txtAttendenceNotice" name="AttendenceNotice" />
						<div class="grid-container">
							<div class="grid-width-100" style="padding-left:0%;padding-right:0%;width:88%;">
								<textarea cols="90" rows="10" id="editorThi" name="editorThi"></textarea>
							</div>
						</div>
					</td>
				</tr>
			</table>
		</form>
		<div class="tit01">
			<div style="float:left; margin-left:10px; font-weight:bold; font-size:18px;">@Resources.ContributeInfo</div>
			<div style="float:right; margin-right:10px;">
				@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.Id) || Utility.HasConferenceRole((User as ICISPrincipal), Model.Id, ConstValues.FunctionId.ConferenceInfo, RoleType.修改))
				 {
					<text>
					<a id="btnContributeModify" href="javascript:void(0);" style="font-weight:bold;text-decoration:underline;" onclick="unlockForm('@ConstValues.ConferencePart.Contribute');">@Resources.Modify</a>
					<a id="btnContributeSave" href="javascript:void(0);" style="color:#52D2FF;font-weight:bold;text-decoration:underline;display:none;" onclick="saveData('@ConstValues.ConferencePart.Contribute');">@Resources.Save</a>
					</text>
				}
			</div>
		</div>
		<form id="frmContribute" method="post">
			@Html.AntiForgeryToken()
			<input type="hidden" id="hidIdContribute" name="Id" />
			<input type="hidden" id="hidPartContribute" name="Part" />
			<table width="100%" height="100%" id="tblContribute" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.ContributeStartDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateContributeStartDate" name="ContributeStartDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.ContributeEndDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateContributeEndDate" name="ContributeEndDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.SubmitRequirement：</td>
					<td style="text-align: left;" class="w2 c4" colspan="3">
						<input type=hidden id="txtSubmitRequirement" name="SubmitRequirement" />
						<div class="grid-container">
							<div class="grid-width-100" style="padding-left:0%;padding-right:0%;width:88%;">
								<textarea cols="90" rows="10" id="editorSec" name="editorSec"></textarea>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c1">@Resources.ReviewLevel：</td>
					<td style="text-align: left;" class="w2 c2">
						<input type="radio" id="isReview1" name="IsReview" value="1" style="position:relative;top:8px;">&nbsp;&nbsp;@Resources.ReviewOnce
						<input type="radio" id="isReview2" name="IsReview" value="2" style="position:relative;top:8px;margin-left:20px;">&nbsp;&nbsp;@Resources.ReviewTwice
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.FirstStartDate：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="dateFirstStartDate" name="ReviewStartDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.FirstEndDate：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="dateFirstEndDate" name="ReviewEndDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="required:true,editable:false" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.FinalStartDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateFinalStartDate" name="FinalStartDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.FinalEndDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateFinalEndDate" name="FinalEndDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false" />
					</td>
				</tr>
			</table>
		</form>
		<div class="tit01">
			<div style="float:left; margin-left:10px; font-weight:bold; font-size:18px;">@Resources.BookingInfo</div>
			<div style="float:right; margin-right:10px;">
				@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.Id) || Utility.HasConferenceRole((User as ICISPrincipal), Model.Id, ConstValues.FunctionId.ConferenceInfo, RoleType.修改))
				 {
					<text>
					<a id="btnBookingModify" href="javascript:void(0);" style="font-weight:bold;text-decoration:underline;" onclick="unlockForm('@ConstValues.ConferencePart.Booking');">@Resources.Modify</a>
					<a id="btnBookingSave" href="javascript:void(0);" style="color:#52D2FF;font-weight:bold;text-decoration:underline;display:none;" onclick="saveData('@ConstValues.ConferencePart.Booking');">@Resources.Save</a>
					</text>
				}
			</div>
		</div>
		<form id="frmBooking" method="post">
			@Html.AntiForgeryToken()
			<input type="hidden" id="hidIdBooking" name="Id" />
			<input type="hidden" id="hidPartBooking" name="Part" />
			<table width="100%" height="100%" id="tblBooking" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.HotelStartDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateHotelStartDate" name="HotelStartDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.HotelEndDate：</td>
					<td style="text-align: left;" class="w2 c2">
						<input id="dateHotelEndDate" name="HotelEndDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.CheckinDate：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="dateCheckinDate" name="CheckinDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.CheckoutDate：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="dateCheckoutDate" name="CheckoutDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c1">@Resources.CheckHint：</td>
					<td style="text-align: left;" class="w2 c2" colspan="3">
						<input id="txtCheckHint" name="CheckHint" class="easyui-textbox" style="height:50px; width:88%;" data-options="multiline:true, validType:['length[1,4000]']" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.TrafficStartDate：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="dateTrafficStartDate" name="TrafficStartDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.TrafficEndDate：</td>
					<td style="text-align: left;" class="w2 c4">
						<input id="dateTrafficEndDate" name="TrafficEndDate" class="easyui-datebox" style="height:27px; width:300px;" data-options="editable:false" />
					</td>
				</tr>
				<tr>
					<td style="text-align: right;" class="w1 c1">@Resources.TrafficHint：</td>
					<td style="text-align: left;" class="w2 c2" colspan="3">
						<input id="txtTrafficHint" name="TrafficHint" class="easyui-textbox" style="height:50px; width:88%;" data-options="multiline:true, validType:['length[1,4000]']" />
					</td>
				</tr>
			</table>
		</form>
		<div class="tit01">
			<div style="float:left; margin-left:10px; font-weight:bold; font-size:18px;">@Resources.WebsiteInfo</div>
			<div style="float:right; margin-right:10px;">
				@if ((User as ICISPrincipal).IsSSA || (User as ICISPrincipal).CSAList.Contains(Model.Id) || Utility.HasConferenceRole((User as ICISPrincipal), Model.Id, ConstValues.FunctionId.ConferenceInfo, RoleType.修改))
				 {
					<text>
					<a id="btnWebsiteModify" href="javascript:void(0);" style="font-weight:bold;text-decoration:underline;" onclick="unlockForm('@ConstValues.ConferencePart.Website');">@Resources.Modify</a>
					<a id="btnWebsiteSave" href="javascript:void(0);" style="color:#52D2FF;font-weight:bold;text-decoration:underline;display:none;" onclick="saveData('@ConstValues.ConferencePart.Website');">@Resources.Save</a>
					</text>
				}
			</div>
		</div>
		<form id="frmWebsite" method="post" enctype="multipart/form-data">
			@Html.AntiForgeryToken()
			<input type="hidden" id="hidIdWebsite" name="Id" />
			<input type="hidden" id="hidPartWebsite" name="Part" />
			<table width="100%" height="100%" id="tblWebsite" cellpadding="0" cellspacing="1" border="0" class="tastyle01">
				<tr>
					<td style="text-align: right;" class="w1 c1">@Resources.ConferenceModelPicture：</td>
					<td style="text-align: left;" class="w2 c2" colspan="3">
						<div>
							<p>
								&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="ConferenceModel" value="left" checked="checked" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="~/Images/model_right_yellow.jpg" align="absmiddle" style="height:100px; width:150px;" id="ModelImg1" />
								&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="ConferenceModel" value="center" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="~/Images/model_centre_blue.jpg" align="absmiddle" style="height:100px; width:150px;" id="ModelImg2" />
								&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" name="ConferenceModel" value="right" />&nbsp;&nbsp;&nbsp;&nbsp;<img src="~/Images/model_left_red.jpg" align="absmiddle" style="height:100px; width:150px;" id="ModelImg3" />
							</p>
						</div>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.BannerUrl：</td>
					<td style="text-align: left;" class="w2 c4" colspan="3">
						<input id="bannerUrl" name="BannerUrlFile" class="easyui-filebox" style="height:27px; width:77%;" data-options="prompt:'@Resources.UploadPicForPC', buttonText:'@Resources.Upload', accept: 'image/jpeg,image/png,image/gif'" />&nbsp;1903*300&nbsp;&nbsp;
						<input type="hidden" id="hidBannerUrl" name="BannerUrlFilePath" />
						<a href="javascript:void(0)" id="aPicForBannerUrl" class="easyui-linkbutton" onclick='$("#bannerUrl").filebox("clear"); $("#hidBannerUrl").val("");'>@Resources.Clear</a>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.ConferenceIntroduction：</td>
					<td style="text-align: left;" class="w2 c2" colspan="3">
						<input type=hidden id="txtIntroduction" name="Introduction" />
						<div class="grid-container">
							<div class="grid-width-100" style="padding-left:0%;padding-right:0%;width:88%;">
								<textarea id="editor" name="editor"></textarea>
							</div>
						</div>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.PicForBackground：</td>
					<td style="text-align: left;" class="w2 c4" colspan="3">
						<input id="picForBackground" class="easyui-filebox" name="PicForBackgroundFile" style="height:27px; width:77%;" data-options="prompt:'@Resources.UploadPicForPC', buttonText:'@Resources.Upload', accept: 'image/jpeg,image/png,image/gif'" />&nbsp;1920*1600
						<input type="hidden" id="hidPicForBackground" name="PicForBackgroundPath" />
						<a href="javascript:void(0)" id="aPicForBackground" class="easyui-linkbutton" onclick='$("#picForBackground").filebox("clear"); $("#hidPicForBackground").val("");'>@Resources.Clear</a>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.IsFollowBackground：</td>
					<td style="text-align: left;" class="w2 c2">
						<input type="checkbox" id="isFollowBackground" name="IsFollowBackground" />
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.PicForBackgroundOpacity：</td>
					<td style="text-align: left;" class="w2 c2">
						<select id="txtOpacityOfPic" name="OpacityOfPic" class="easyui-combobox" style="height:27px; width:100px;" data-options="editable:false,panelHeight:'auto'">
							<option value="0">0%</option>
							<option value="0.1">10%</option>
							<option value="0.2">20%</option>
							<option value="0.3">30%</option>
							<option value="0.4">40%</option>
							<option value="0.5">50%</option>
							<option value="0.6">60%</option>
							<option value="0.7">70%</option>
							<option value="0.8">80%</option>
							<option value="0.9">90%</option>
							<option value="1">100%</option>
						</select>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.ColorForBackground：</td>
					<td style="text-align: left;" class="w2 c4">
						<input type="color" id="colorForBackground" name="ColorForBackground" list="defaultColor" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.ColorForBackgroundOpacity：</td>
					<td style="text-align: left;" class="w2 c4">
						<select id="txtOpacityOfColor" name="OpacityOfColor" class="easyui-combobox" style="height:27px; width:100px;" data-options="editable:false,panelHeight:'auto'">
							<option value="0">0%</option>
							<option value="0.1">10%</option>
							<option value="0.2">20%</option>
							<option value="0.3">30%</option>
							<option value="0.4">40%</option>
							<option value="0.5">50%</option>
							<option value="0.6">60%</option>
							<option value="0.7">70%</option>
							<option value="0.8">80%</option>
							<option value="0.9">90%</option>
							<option value="1">100%</option>
						</select>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.ColorForConference：</td>
					<td style="text-align: left;" class="w2 c2">
						<input type="color" id="colorForConference" name="ColorForConference" list="defaultColor" />
						<datalist id="defaultColor">
							<option>#c00000</option>
							<option>#fc0000</option>
							<option>#fcc000</option>
							<option>#fcff00</option>
							<option>#92d050</option>
							<option>#00b050</option>
							<option>#00b0f0</option>
							<option>#0070c0</option>
							<option>#002060</option>
							<option>#7030a0</option>
						</datalist>
					</td>
					<td style="text-align: right; " class="w1 c1"></td>
					<td style="text-align: left;" class="w2 c2"></td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.ColorForMenu：</td>
					<td style="text-align: left;" class="w2 c4">
						<input type="color" id="colorForMenu" name="ColorForMenu" list="defaultColor" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.ColorForMenuOpacity：</td>
					<td style="text-align: left;" class="w2 c4">
						<select id="txtOpacityOfMenu" name="OpacityOfMenu" class="easyui-combobox" style="height:27px; width:100px;" data-options="editable:false,panelHeight:'auto'">
							<option value="0">0%</option>
							<option value="0.1">10%</option>
							<option value="0.2">20%</option>
							<option value="0.3">30%</option>
							<option value="0.4">40%</option>
							<option value="0.5">50%</option>
							<option value="0.6">60%</option>
							<option value="0.7">70%</option>
							<option value="0.8">80%</option>
							<option value="0.9">90%</option>
							<option value="1">100%</option>
						</select>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.FontColorForMenu：</td>
					<td style="text-align: left;" class="w2 c2">
						<input type="color" id="fontColorForMenu" name="FontColorForMenu" list="defaultColor" />
					</td>
					<td style="text-align: right; " class="w1 c1"></td>
					<td style="text-align: left;" class="w2 c2"></td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.ColorForLeft：</td>
					<td style="text-align: left;" class="w2 c4">
						<input type="color" id="colorForLeft" name="ColorForLeft" list="defaultColor" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.ColorForLeftOpacity：</td>
					<td style="text-align: left;" class="w2 c4">
						<select id="txtOpacityOfLeft" name="OpacityOfLeft" class="easyui-combobox" style="height:27px; width:100px;" data-options="editable:false,panelHeight:'auto'">
							<option value="0">0%</option>
							<option value="0.1">10%</option>
							<option value="0.2">20%</option>
							<option value="0.3">30%</option>
							<option value="0.4">40%</option>
							<option value="0.5">50%</option>
							<option value="0.6">60%</option>
							<option value="0.7">70%</option>
							<option value="0.8">80%</option>
							<option value="0.9">90%</option>
							<option value="1">100%</option>
						</select>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.ColorForCenter：</td>
					<td style="text-align: left;" class="w2 c2">
						<input type="color" id="colorForCenter" name="ColorForCenter" list="defaultColor" />
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.ColorForCenterOpacity：</td>
					<td style="text-align: left;" class="w2 c2">
						<select id="txtOpacityOfCenter" name="OpacityOfCenter" class="easyui-combobox" style="height:27px; width:100px;" data-options="editable:false,panelHeight:'auto'">
							<option value="0">0%</option>
							<option value="0.1">10%</option>
							<option value="0.2">20%</option>
							<option value="0.3">30%</option>
							<option value="0.4">40%</option>
							<option value="0.5">50%</option>
							<option value="0.6">60%</option>
							<option value="0.7">70%</option>
							<option value="0.8">80%</option>
							<option value="0.9">90%</option>
							<option value="1">100%</option>
						</select>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.ColorForRight：</td>
					<td style="text-align: left;" class="w2 c4">
						<input type="color" id="colorForRight" name="ColorForRight" list="defaultColor" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.ColorForRightOpacity：</td>
					<td style="text-align: left;" class="w2 c4">
						<select id="txtOpacityOfRight" name="OpacityOfRight" class="easyui-combobox" style="height:27px; width:100px;" data-options="editable:false,panelHeight:'auto'">
							<option value="0">0%</option>
							<option value="0.1">10%</option>
							<option value="0.2">20%</option>
							<option value="0.3">30%</option>
							<option value="0.4">40%</option>
							<option value="0.5">50%</option>
							<option value="0.6">60%</option>
							<option value="0.7">70%</option>
							<option value="0.8">80%</option>
							<option value="0.9">90%</option>
							<option value="1">100%</option>
						</select>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c1">@Resources.NewsBackgroundColor：</td>
					<td style="text-align: left;" class="w2 c2">
						<input type="color" id="newsBackgroundColor" name="NewsBackgroundColor" list="defaultColor" />
					</td>
					<td style="text-align: right; " class="w1 c1">@Resources.NewsBackgroundOpacity：</td>
					<td style="text-align: left;" class="w2 c2">
						<select id="newsBackgroundOpacity" name="NewsBackgroundOpacity" class="easyui-combobox" style="height:27px; width:100px;" data-options="editable:false,panelHeight:'auto'">
							<option value="0">0%</option>
							<option value="0.1">10%</option>
							<option value="0.2">20%</option>
							<option value="0.3">30%</option>
							<option value="0.4">40%</option>
							<option value="0.5">50%</option>
							<option value="0.6">60%</option>
							<option value="0.7">70%</option>
							<option value="0.8">80%</option>
							<option value="0.9">90%</option>
							<option value="1">100%</option>
						</select>
					</td>
				</tr>
				<tr>
					<td style="text-align: right; " class="w1 c3">@Resources.ShowCountdown：</td>
					<td style="text-align: left;" class="w2 c4">
						<input type="checkbox" id="isShowCountdown" name="IsShowCountdown" />
					</td>
					<td style="text-align: right; " class="w1 c3">@Resources.ShowShare：</td>
					<td style="text-align: left;" class="w2 c4">
						<input type="checkbox" id="isShowShare" name="IsShowShare" />
					</td>
				</tr>
			</table>
		</form>
		<input id="hidID" type="hidden" />
		<input id="hidModify" type="hidden" />
	</div>
</div>

@section Scripts {
<script>
	common.setCurrentMenu("ConferenceInfo");

	var language = "@ViewBag.Language";
	if (language == "@ConstValues.Language.Cn") {
		CKEDITOR.config.language = "zh-cn";
	} else {
		CKEDITOR.config.language = "en";
	}

	initSample();
	ckeditor = CKEDITOR.replace("editorSec");
	CKFinder.setupCKEditor(ckeditor, "~/Scripts/ckfinder/")
	ckeditor = CKEDITOR.replace("editorThi");
	CKFinder.setupCKEditor(ckeditor, "~/Scripts/ckfinder/")

	$(function () {
		var id = "@Model.Id";
		var url = "@Url.Action(nameof(ConferenceInfoController.GetEditData),
				nameof(ConferenceInfoController).GetControllerName())" + "/" + id + "?random=" + Math.random();

		$.get(url, null, function (data, textStatus, jqXHR) {
			if (data.result == "@ConstValues.AjaxFailResult") {
				common.showError(data.message);
			} else {
				$("#detailWindowTitle").text("@Resources.Edit");
				$("#hidID").val(id);
				$("#txtConferenceName").textbox("setValue", data.data.conferenceName);
				$("#txtConferenceNickName").textbox("setValue", data.data.conferenceNickName);
				$("#isInternational").prop("checked", data.data.isInternational);
				$("#dateConferenceStartDate").datebox("setValue", data.data.conferenceStartDate);
				$("#dateConferenceEndDate").datebox("setValue", data.data.conferenceEndDate);
				$("#txtOperateTime").textbox("setValue", data.data.operateTime);
				$("#txtOperateLocation").textbox("setValue", data.data.operateLocation);
				$("#txtConferenceAddress").textbox("setValue", data.data.conferenceAddress);
				$("#txtSponsor").textbox("setValue", data.data.sponsor);
				$("#txtOrganizer").textbox("setValue", data.data.organizer);
				$("#txtCoOrganizer").textbox("setValue", data.data.coOrganizer);
				$("#txtHomePageUrl").textbox("setValue", data.data.homePageUrl);
				$("#txtSummary").textbox("setValue", data.data.summary);
				$("#txtContact").textbox("setValue", data.data.contact);
				$("#txtContactPhone").textbox("setValue", data.data.contactPhone);
				$("#txtContactMail").textbox("setValue", data.data.contactMail);
				$("#picForPC").filebox("clear");
				$("#picForPC").filebox("setText", data.data.picForPC);
				$("#hidPicForPC").val(data.data.picForPC);
				$("#picForMobile").filebox("clear");
				$("#picForMobile").filebox("setText", data.data.picForMobile);
				$("#hidPicForMobile").val(data.data.picForMobile);
				$("#txtKeywords").textbox("setValue", data.data.keywords);
				$("#txtDescription").textbox("setValue", data.data.description);
				$("#txtRemark").textbox("setValue", data.data.remark);

				$("#dateRegisterStartDate").datebox("setValue", data.data.registerStartDate);
				$("#dateRegisterEndDate").datebox("setValue", data.data.registerEndDate);
				$("#datePayStartDate").datebox("setValue", data.data.payStartDate);
				$("#datePayEndDate").datebox("setValue", data.data.payEndDate);
				$("#dateBenefitStartDate").datebox("setValue", data.data.benefitStartDate);
				$("#dateBenefitEndDate").datebox("setValue", data.data.benefitEndDate);
				CKEDITOR.instances.editorThi.setData(data.data.attendenceNotice);

				$("#dateContributeStartDate").datebox("setValue", data.data.contributeStartDate);
				$("#dateContributeEndDate").datebox("setValue", data.data.contributeEndDate);
				CKEDITOR.instances.editorSec.setData(data.data.submitRequirement);
				if (data.data.isReview) {
					$("input[name=IsReview]:eq(1)").attr("checked", "checked");
				} else {
					$("input[name=IsReview]:eq(0)").attr("checked", "checked");
				}
				$("#dateFirstStartDate").datebox("setValue", data.data.reviewStartDate);
				$("#dateFirstEndDate").datebox("setValue", data.data.reviewEndDate);
				$("#dateFinalStartDate").datebox("setValue", data.data.finalStartDate);
				$("#dateFinalEndDate").datebox("setValue", data.data.finalEndDate);

				$("#dateHotelStartDate").datebox("setValue", data.data.hotelStartDate);
				$("#dateHotelEndDate").datebox("setValue", data.data.hotelEndDate);
				$("#dateCheckinDate").datebox("setValue", data.data.checkinDate);
				$("#dateCheckoutDate").datebox("setValue", data.data.checkoutDate);
				$("#txtCheckHint").textbox("setValue", data.data.checkHint);
				$("#dateTrafficStartDate").datebox("setValue", data.data.trafficStartDate);
				$("#dateTrafficEndDate").datebox("setValue", data.data.trafficEndDate);
				$("#txtTrafficHint").textbox("setValue", data.data.trafficHint);

				if (data.data.conferenceModel == "left") {
					$("input[name=ConferenceModel]:eq(0)").attr("checked", "checked");
				} else if (data.data.conferenceModel == "center") {
					$("input[name=ConferenceModel]:eq(1)").attr("checked", "checked");
				} else {
					$("input[name=ConferenceModel]:eq(2)").attr("checked", "checked");
				}
				$("#bannerUrl").filebox("clear");
				$("#bannerUrl").filebox("setText", data.data.bannerUrl);
				$("#hidBannerUrl").val(data.data.bannerUrl);
				CKEDITOR.instances.editor.setData(data.data.introduction);
				$("#picForBackground").filebox("clear");
				$("#picForBackground").filebox("setText", data.data.picForBackground);
				$("#hidPicForBackground").val(data.data.picForBackground);
				$("#isFollowBackground").prop("checked", data.data.isFollowBackground);
				$("#txtOpacityOfPic").combobox("setValue", data.data.opacityOfPic != null ? data.data.opacityOfPic : 1);
				$("#colorForBackground").val(data.data.colorForBackground);
				$("#txtOpacityOfColor").combobox("setValue", data.data.opacityOfColor);
				$("#colorForConference").val(data.data.colorForConference);
				$("#colorForMenu").val(data.data.colorForMenu);
				$("#txtOpacityOfMenu").combobox("setValue", data.data.opacityOfMenu);
				$("#fontColorForMenu").val(data.data.fontColorForMenu);
				$("#colorForLeft").val(data.data.colorForLeft);
				$("#txtOpacityOfLeft").combobox("setValue", data.data.opacityOfLeft);
				$("#colorForCenter").val(data.data.colorForCenter);
				$("#txtOpacityOfCenter").combobox("setValue", data.data.opacityOfCenter);
				$("#colorForRight").val(data.data.colorForRight);
				$("#txtOpacityOfRight").combobox("setValue", data.data.opacityOfRight);
				$("#newsBackgroundColor").val(data.data.newsBackgroundColor);
				$("#newsBackgroundOpacity").combobox("setValue", data.data.newsBackgroundOpacity);
				$("#isShowCountdown").prop("checked", data.data.isShowCountdown);
				$("#isShowShare").prop("checked", data.data.isShowShare);

				lockForm("@ConstValues.ConferencePart.Info");
				lockForm("@ConstValues.ConferencePart.Attendence");
				lockForm("@ConstValues.ConferencePart.Contribute");
				lockForm("@ConstValues.ConferencePart.Booking");
				lockForm("@ConstValues.ConferencePart.Website");
			}
		});
	});

	function lockForm(frmName) {
		$("#hidModify").val(0);
		$("#btn" + frmName + "Modify").show();
		$("#btn" + frmName + "Save").hide();

		$("#tbl" + frmName).attr("disabled", true);
		$("#tbl" + frmName + " input").attr("disabled", true);
		$("#tbl" + frmName + " span").attr("disabled", true);
		$("#tbl" + frmName + " textarea").attr("disabled", true);

		if (frmName == "@ConstValues.ConferencePart.Info") {
			$("#txtConferenceName").textbox({ disabled: true });
			$("#txtConferenceNickName").textbox({ disabled: true });
			$("#dateConferenceStartDate").combo("readonly", true);
			$("#dateConferenceEndDate").combo("readonly", true);
			$("#picForPC").filebox("readonly", true);
			$("#aPicForPC").hide();
			$("#picForMobile").filebox("readonly", true);
			$("#aPicForMobile").hide();
		} else if (frmName == "@ConstValues.ConferencePart.Attendence") {
			$("#dateRegisterStartDate").combo("readonly", true);
			$("#dateRegisterEndDate").combo("readonly", true);
			//CKEDITOR.instances.editorThi.setReadOnly(true);
			$("#datePayStartDate").combo("readonly", true);
			$("#datePayEndDate").combo("readonly", true);
			$("#dateBenefitStartDate").combo("readonly", true);
			$("#dateBenefitEndDate").combo("readonly", true);
		} else if (frmName == "@ConstValues.ConferencePart.Contribute") {
			$("#dateContributeStartDate").combo("readonly", true);
			$("#dateContributeEndDate").combo("readonly", true);
			//CKEDITOR.instances.editorSec.setReadOnly(true);
			$("#dateFirstStartDate").combo("readonly", true);
			$("#dateFirstEndDate").combo("readonly", true);
			$("#dateFinalStartDate").combo("readonly", true);
			$("#dateFinalEndDate").combo("readonly", true);
		} else if (frmName == "@ConstValues.ConferencePart.Booking") {
			$("#dateHotelStartDate").combo("readonly", true);
			$("#dateHotelEndDate").combo("readonly", true);
			$("#dateCheckinDate").combo("readonly", true);
			$("#dateCheckoutDate").combo("readonly", true);
			$("#dateTrafficStartDate").combo("readonly", true);
			$("#dateTrafficEndDate").combo("readonly", true);
		} else if (frmName == "@ConstValues.ConferencePart.Website") {
			$("#bannerUrl").filebox("readonly", true);
			$("#aPicForBannerUrl").hide();
			//CKEDITOR.instances.editor.setReadOnly(true);
			$("#picForBackground").filebox("readonly", true);
			$("#aPicForBackground").hide();
			$("#txtOpacityOfPic").combobox("readonly", true);
			$("#txtOpacityOfColor").combobox("readonly", true);
			$("#txtOpacityOfMenu").combobox("readonly", true);
			$("#txtOpacityOfLeft").combobox("readonly", true);
			$("#txtOpacityOfCenter").combobox("readonly", true);
			$("#txtOpacityOfRight").combobox("readonly", true);
			$("#newsBackgroundOpacity").combobox("readonly", true);
		}
	}

	function unlockForm(frmName) {
		if ($("#hidModify").val() == 1) {
			common.showError("@Resources.MsgConferenceSaveCheck");
			return false;
		}

		$("#hidModify").val(1);
		$("#btn" + frmName + "Modify").hide();
		$("#btn" + frmName + "Save").show();

		$("#tbl" + frmName).attr("disabled", false);
		$("#tbl" + frmName + " input").attr("disabled", false);
		$("#tbl" + frmName + " span").attr("disabled", false);
		$("#tbl" + frmName + " textarea").attr("disabled", false);

		if (frmName == "@ConstValues.ConferencePart.Info") {
			$("#txtConferenceName").textbox({ disabled: true });
			$("#txtConferenceNickName").textbox({ disabled: true });
			$("#dateConferenceStartDate").combo("readonly", false);
			$("#dateConferenceEndDate").combo("readonly", false);
			$("#picForPC").filebox("readonly", false);
			$("#aPicForPC").show();
			$("#picForMobile").filebox("readonly", false);
			$("#aPicForMobile").show();
		} else if (frmName == "@ConstValues.ConferencePart.Attendence") {
			$("#dateRegisterStartDate").combo("readonly", false);
			$("#dateRegisterEndDate").combo("readonly", false);
			CKEDITOR.instances.editorThi.setReadOnly(false);
			$("#datePayStartDate").combo("readonly", false);
			$("#datePayEndDate").combo("readonly", false);
			$("#dateBenefitStartDate").combo("readonly", false);
			$("#dateBenefitEndDate").combo("readonly", false);
		} else if (frmName == "@ConstValues.ConferencePart.Contribute") {
			$("#dateContributeStartDate").combo("readonly", false);
			$("#dateContributeEndDate").combo("readonly", false);
			CKEDITOR.instances.editorSec.setReadOnly(false);
			$("#dateFirstStartDate").combo("readonly", false);
			$("#dateFirstEndDate").combo("readonly", false);
			$("#dateFinalStartDate").combo("readonly", false);
			$("#dateFinalEndDate").combo("readonly", false);
		} else if (frmName == "@ConstValues.ConferencePart.Booking") {
			$("#dateHotelStartDate").combo("readonly", false);
			$("#dateHotelEndDate").combo("readonly", false);
			$("#dateCheckinDate").combo("readonly", false);
			$("#dateCheckoutDate").combo("readonly", false);
			$("#dateTrafficStartDate").combo("readonly", false);
			$("#dateTrafficEndDate").combo("readonly", false);
		} else if (frmName == "@ConstValues.ConferencePart.Website") {
			$("#bannerUrl").filebox("readonly", false);
			$("#aPicForBannerUrl").show();
			CKEDITOR.instances.editor.setReadOnly(false);
			$("#picForBackground").filebox("readonly", false);
			$("#aPicForBackground").show();
			$("#txtOpacityOfPic").combobox("readonly", false);
			$("#txtOpacityOfColor").combobox("readonly", false);
			$("#txtOpacityOfMenu").combobox("readonly", false);
			$("#txtOpacityOfLeft").combobox("readonly", false);
			$("#txtOpacityOfCenter").combobox("readonly", false);
			$("#txtOpacityOfRight").combobox("readonly", false);
			$("#newsBackgroundOpacity").combobox("readonly", false);
		}
	}

	function saveData(frmName) {
		var isValid = $("#frm" + frmName).form("validate");

		if (isValid) {
			if (frmName == "@ConstValues.ConferencePart.Info") {
				@*var picForPC = $("#picForPC").filebox("getText");
				if (picForPC == "") {
					common.showError("@Resources.MsgUploadConferencePic");
					return;
				}*@
				var picForPC = $("#picForPC").filebox("getText");
				if (picForPC != "" && !/\.(gif|jpg|jpeg|png|GIF|JPG|PNG|JPEG)$/.test(picForPC)) {
					common.showError("@Resources.MsgImgType");
					return;
				}
				var picForMobile = $("#picForMobile").filebox("getText");
				if (picForMobile != "" && !/\.(gif|jpg|jpeg|png|GIF|JPG|PNG|JPEG)$/.test(picForMobile)) {
					common.showError("@Resources.MsgImgType");
					return;
				}

				var ConferenceStartDate = $.fn.datebox.defaults.parser($("#dateConferenceStartDate").datebox("getValue"));
				var ConferenceEndDate = $.fn.datebox.defaults.parser($("#dateConferenceEndDate").datebox("getValue"));
				if (ConferenceStartDate > ConferenceEndDate) {
					common.showError("@Resources.MsgConferenceDateInputError");
					return;
				}
			} else if (frmName == "@ConstValues.ConferencePart.Attendence") {
				var RegisterStartDate = $.fn.datebox.defaults.parser($("#dateRegisterStartDate").datebox("getValue"));
				var RegisterEndDate = $.fn.datebox.defaults.parser($("#dateRegisterEndDate").datebox("getValue"));
				if (RegisterStartDate > RegisterEndDate) {
					common.showError("@Resources.MsgRegisterDateInputError");
					return;
				}

				var PayStartDate = $.fn.datebox.defaults.parser($("#datePayStartDate").datebox("getValue"));
				var PayEndDate = $.fn.datebox.defaults.parser($("#datePayEndDate").datebox("getValue"));
				if (PayStartDate > PayEndDate) {
					common.showError("@Resources.MsgPayDateInputError");
					return;
				}

				var BenefitStartDate = $.fn.datebox.defaults.parser($("#dateBenefitStartDate").datebox("getValue"));
				var BenefitEndDate = $.fn.datebox.defaults.parser($("#dateBenefitEndDate").datebox("getValue"));
				if (BenefitStartDate > BenefitEndDate) {
					common.showError("@Resources.MsgBenefitDateInputError");
					return;
				}
				if (PayStartDate > BenefitStartDate || PayEndDate < BenefitEndDate) {
					common.showError("@Resources.MsgBenifitTimeError");
					return;
				}
				$("#txtAttendenceNotice").val(CKEDITOR.instances.editorThi.getData());
			} else if (frmName == "@ConstValues.ConferencePart.Contribute") {
				var ContributeStartDate = $.fn.datebox.defaults.parser($("#dateContributeStartDate").datebox("getValue"));
				var ContributeEndDate = $.fn.datebox.defaults.parser($("#dateContributeEndDate").datebox("getValue"));
				if (ContributeStartDate > ContributeEndDate) {
					common.showError("@Resources.MsgContributeDateInputError");
					return;
				}

				var FirstStartDate = $.fn.datebox.defaults.parser($("#dateFirstStartDate").datebox("getValue"));
				var FirstEndDate = $.fn.datebox.defaults.parser($("#dateFirstEndDate").datebox("getValue"));
				var FinalStartDate = $.fn.datebox.defaults.parser($("#dateFinalStartDate").datebox("getValue"));
				var FinalEndDate = $.fn.datebox.defaults.parser($("#dateFinalEndDate").datebox("getValue"));
				if (FirstStartDate > FirstEndDate || FinalStartDate > FinalEndDate) {
					common.showError("@Resources.MsgReviewDateInputError");
					return;
				}
				$("#txtSubmitRequirement").val(CKEDITOR.instances.editorSec.getData());
			} else if (frmName == "@ConstValues.ConferencePart.Booking") {
				var HotelStartDate = $.fn.datebox.defaults.parser($("#dateHotelStartDate").datebox("getValue"));
				var HotelEndDate = $.fn.datebox.defaults.parser($("#dateHotelEndDate").datebox("getValue"));
				if (HotelStartDate > HotelEndDate) {
					common.showError("@Resources.MsgHotelDateInputError");
					return;
				}

				var CheckinDate = $.fn.datebox.defaults.parser($("#dateCheckinDate").datebox("getValue"));
				var CheckoutDate = $.fn.datebox.defaults.parser($("#dateCheckoutDate").datebox("getValue"));
				if (CheckinDate > CheckoutDate) {
					common.showError("@Resources.MsgCheckDateInputError");
					return;
				}

				var TrafficStartDate = $.fn.datebox.defaults.parser($("#dateTrafficStartDate").datebox("getValue"));
				var TrafficEndDate = $.fn.datebox.defaults.parser($("#dateTrafficEndDate").datebox("getValue"));
				if (TrafficStartDate > TrafficEndDate) {
					common.showError("@Resources.MsgTrafficDateInputError");
					return;
				}
			} else if (frmName == "@ConstValues.ConferencePart.Website") {
				var banner = $("#bannerUrl").filebox("getText");
				if (banner != "" && !/\.(gif|jpg|jpeg|png|GIF|JPG|PNG|JPEG)$/.test(banner)) {
					common.showError("@Resources.MsgImgType");
					return;
				}

				var picForBackground = $("#picForBackground").filebox("getText");
				if (picForBackground != "" && !/\.(gif|jpg|jpeg|png|GIF|JPG|PNG|JPEG)$/.test(picForBackground)) {
					common.showError("@Resources.MsgImgType");
					return;
				}
				$("#txtIntroduction").val(CKEDITOR.instances.editor.getData());
			}

			$.messager.confirm("@Resources.Save", "@Resources.CfmSave", function (r) {
				if (r) {
					var loading = layer.load(0, {
						shade: [0.4, "#fff"]
					});

					$("#frm" + frmName).form({
						iframe: false,
						success: function (data) { }
					});

					$("#hidId" + frmName).val($("#hidID").val());
					$("#hidPart" + frmName).val(frmName);

					$("#frm" + frmName).form("submit", {
						url: "@Url.Action(nameof(ConferenceInfoController.Edit), nameof(ConferenceInfoController).GetControllerName(),
								new { ConferenceId = Model.Id })",
						onSubmit: function (param) {
							param.random = Math.random();
						},
						success: function (data) {
							layer.close(loading);
							data = JSON.parse(data);
							if (data.result == "@ConstValues.AjaxFailResult") {
								common.showError(data.message);
							} else {
								common.showSuccess(data.message, true);
								lockForm(frmName);
							}
						}
					});
				}
			});
		}
	}
</script>
}